<?php 
//START EDIT
$host= 'localhost'; //Your Database Host
 $user= 'root'; //Your Username
 $password = 'YOUR_PASSWORD'; //DB Password
 $db= 'library'; //DB Name
 //END EDIT
 
 // Connects to your Database 
 
 
mysql_connect($host, $user, $password) or die(mysql_error());

mysql_select_db($db) or die(mysql_error());  
 
?>